class EquipmentData:
	
	var config
	var count = 1

	func getProperties():
		var result = {}
		var props = [Consts.PROP_NAME, Consts.PROP_HP, Consts.PROP_MP, Consts.PROP_ANTI_SLASH, Consts.PROP_ANTI_MACE, Consts.PROP_ANTI_PIERCE, Consts.PROP_ANTI_FIRE, Consts.PROP_ANTI_THUNDER, Consts.PROP_ANTI_POISON, Consts.PROP_ANTI_BLEED, Consts.PROP_ANTI_SLEEP, Consts.PROP_ANTI_MADNESS, Consts.PROP_ANTI_DEAD, Consts.PROP_ANTI_FROST, Consts.PROP_CRITICAL, Consts.PROP_CRITICAL_DAMAGE, Consts.PROP_MOVE, Consts.PROP_AVOID]
		
		for prop in props:
			result[prop] = config.get(prop)
		
		result[Consts.PROP_CRITICAL_PERCENT] = float(result[Consts.PROP_CRITICAL]) * 100.0
		result[Consts.PROP_CRITICAL_DAMAGE_PERCENT] = float(result[Consts.PROP_CRITICAL_DAMAGE]) * 100.0
		result[Consts.PROP_AVOID_PERCENT] = float(result[Consts.PROP_AVOID]) * 100.0
		result[Consts.PROP_TYPE_NAME] = ConfigClasses.EquipmentTypeConfig.configsDict[config.type].name 
		
		return result
		
